#include<bits/stdc++.h>
using namespace std;
#define int long long

int a[5];

signed main() {
	for (int i = 1; i <= 4; i++)
		cin >> a[i];
	vector<int> ans;
	for (int i = 1; i <= 2; i++)
		for (int j = 3; j <= 4; j++)
			ans.push_back(a[i]*a[j]);
	for (int ii : ans) {
		if (ii < INT_MIN || ii > INT_MAX) {
			cout << "long long int";
			return 0;
		}
	}
	cout << "int";
	return 0;
}
